package com.platform.controller.backend;

import com.platform.base.BaseController;
import com.platform.common.Const;
import com.platform.common.ServerResponse;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * 消息通知控制层
 */
@RestController
@RequestMapping("/messageController/")
@CrossOrigin(origins = Const.REQUESTURL,maxAge = 3600,allowCredentials = "true")
public class MessageController extends BaseController {
    /**
     *条件查询通知消息
     * @param paramMap
     * @param request
     * @return
     */
    @GetMapping("selectByParamMap.do")
    public ServerResponse<List<Map>> selectByParamMap(@RequestParam Map paramMap, HttpServletRequest request){
        return iMessageService.selectByParamMap(paramMap,request);
    }
}
